/*
*********************************************************************************************************
*                                              EXAMPLE CODE
*
*                          (c) Copyright 2003-2007; Micrium, Inc.; Weston, FL
*
*               All rights reserved.  Protected by international copyright laws.
*               Knowledge of the source code may NOT be used to develop a similar product.
*               Please help us continue to provide the Embedded community with the finest
*               software available.  Your honesty is greatly appreciated.
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*
*                                       APPLICATION CONFIGURATION
*
*                                         Renesas SH2A-FPU 7216
*                                                on the
*                                        R0K7216 Evaluation Board
*
* Filename      : app_cfg.h
* Version       : V1.00
* Programmer(s) : Hong Soong
*********************************************************************************************************
*/

#ifndef  __APP_CFG_H__
#define  __APP_CFG_H__

/*
*********************************************************************************************************
*                                       ADDITIONAL uC/MODULE ENABLES
*********************************************************************************************************
*/
                                                                        /* DEF_ENABLED = Present, DEF_DISABLED = Not Present        */
#define  uC_PROBE_OS_PLUGIN              DEF_ENABLED                  
#define  uC_PROBE_COM_MODULE             DEF_ENABLED

/*
*********************************************************************************************************
*                                            INTERRUPT PRIORITIES
*********************************************************************************************************
*/

#define  OS_INTERRUPT_PRIORITY                            1
#define  SPARK_INTERRUPT_PRIORITY                         15

/*
*********************************************************************************************************
*                                            TASK PRIORITIES
*********************************************************************************************************
*/

#define  OS_TASK_TMR_PRIO               (OS_LOWEST_PRIO - 4)
#define  APP_START_TASK_PRIO                              5
#define  APP_START_TASK1_PRIO                             6

#define  OS_PROBE_TASK_PRIO                               9

/*
*********************************************************************************************************
*                                            TASK STACK SIZES
*********************************************************************************************************
*/

#define  APP_START_TASK_STK_SIZE                        256
#define  APP_TASK1_STK_SIZE                             256

#define  OS_PROBE_TASK_STK_SIZE                         175

/*
*********************************************************************************************************
*                                        uC/LIB CONFIGURATION
*********************************************************************************************************
*/

#define  uC_CFG_OPTIMIZE_ASM_EN                DEF_DISABLED
#define  LIB_MEM_CFG_ARG_CHK_EXT_EN             DEF_ENABLED
#define  LIB_MEM_CFG_ALLOC_EN                   DEF_ENABLED
#define  LIB_MEM_CFG_POOL_NBR                            10
#define  LIB_MEM_CFG_HEAP_SIZE                        25000L

/*
*********************************************************************************************************
*                               uC/Probe plug-in for uC/OS-II CONFIGURATION
*********************************************************************************************************
*/

#define  OS_PROBE_TASK                         1                /* Task will be created for uC/Probe OS Plug-In.            */
#define  OS_PROBE_TMR_32_BITS                  0                /* uC/Probe OS Plug-In timer is a 16-bit timer.             */
#define  OS_PROBE_HOOKS_EN                     1                /* Hooks to update OS_TCB profiling members are included.   */
#define  OS_PROBE_TASK_ID     OS_PROBE_TASK_PRIO
#define  OS_PROBE_USE_FP                       0                /* Use floating point for uC/Probe                          */ 
#define  PROBE_BAUD_RATE                   38400

/*
*********************************************************************************************************
*                                                BSP DEFINES
*********************************************************************************************************
*/

#define  BSP_SP_PORT_NUM                       1
#define  BSP_SP_BAUD_RATE                  38400

#endif